/**
 *  路由拦截器
 */
import router from '../router'
import { buildDynamicRoute } from '../util/router';

/**
 * 全局前置守卫
 */
router.beforeEach(async (to, from, next) => {
    // 验证是否需要构建动态路由
    buildDynamicRoute()

    // 演示是否有访问权限
    
    next();
});